﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name：  Warehouse
    /// Author:       Fei Wang
    /// Creation Date: 2011-12-29
    /// Description:  仓库
    /// QA:
    /// </summary>
    public class Warehouse
    {
        [Key]
        public int ID { get; set; }

        //[Required(ErrorMessage = "Name Required")]
        [StringLength(25, ErrorMessage = "Must be less than 25 characters")]
        [MaxLength(50)]
        public string Name { get; set; }
     
        public virtual Employee Employee { get; set; }

        public virtual ICollection<Godownentry> GodownentryCollection { get; set; }

    }
}
